package com.service;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.dao.BoardDAO;
import com.entity.BoardDTO;

public class BoardReplyUICommand implements BoardCommand {

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse response) {
		
		try {
			request.setCharacterEncoding("UTF-8");
			
			String num = request.getParameter("num");
			BoardDAO dao = new BoardDAO();
			
			BoardDTO data = dao.replyui(num);
			request.setAttribute("replyui", data);
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}
}